package main

import (
	"Ljohn/randTest/Ratio"
	"container/list"
	"fmt"
	"math/rand"
	"time"
)

func main() {
	intn()
}

func intn() {
	randomStr := []string{"math", "chinese", "string", "default"}
	for i := 0; i < 100; i++ {
		x := rand.Intn(4)
		fmt.Println(randomStr[x])
	}
}

func test() {
	c := 0
	for i := 0; i < 10000; i++ {
		Ratio.TestRandValues()
	}
	for k, v := range Ratio.TimesMap {
		fmt.Println(k, ":", v)
		c += v
	}
	fmt.Println(c)
}

func rand_generator(n int) chan int {
	rand.Seed(time.Now().UnixNano())
	out := make(chan int)
	go func(x int) {
		for {
			out <- rand.Intn(x)
		}
	}(n)
	return out
}

func Test() {
	list.New()
}
